In-depth interpretation of sequences in PostgreSQL and their related functions, and interpretation of postgresql
I. Introduction
A sequence object (also called a SEQUENCE generator) is a special single-row table created using create sequence. A
Recently prepared for PostgreSQL database development related knowledge, this article summarizes the PPT content through the blog record sharing, this essay's main content is to introduce the PostgreSQL database basic information, and how to use the
1.createdb database nameGenerate Database2.DROPDB database nameDeleting a database3.CREATE User NameCreate user4.drop User NameDelete User5.SELECT usename from Pg_user;View System User Information\du7.SELECT version ();View version Information8.psql
Install PostgreSQL 9.6 For example:?InstallationInstall the repository RPMYum Install https://download.postgresql.org/pub/repos/yum/9.6/redhat/rhel-7-x86_64/pgdg-redhat96-9.6-3.noarch.rpmInstall the client PackagesYum Install postgresql96Install the
Sequence is a sequence of numbers automatically added by a database system in accordance with certain rules. This sequence is generally used as the surrogate primary key (because it is not duplicated) and has no other meaning.Sequence is the
MySQL has an excellent syntax createtable... like, which allows you to quickly copy a table and create its copy. PostgreSQL also has similar syntax and is more flexible, but pay attention to some details. Let's take a look at the MySQL Syntax:
MySQL has one and excellent syntax create TABLE ... like, you can quickly copy a table and create a copy of it. PostgreSQL also has a similar syntax and is more flexible, but pay attention to the details.First look at MySQL syntax: CREATE TABLE ...
This article will share with you a summary of the Sequence usage of Oracle, DB2, and PostgreSQL. I hope this method will be helpful to you.
Sequence is a Sequence of numbers automatically added by the database system according to certain rules. This
Sequence is a sequence of numbers that the database system automatically increases according to certain rules. This sequence is generally used as the surrogate primary key (because it does not repeat) and has no other meaning.
Sequence is the
MySQL has one and excellent syntax create TABLE ... like, you can quickly copy a table and create a copy of it. PostgreSQL also has a similar syntax and is more flexible, but pay attention to the details.First look at MySQL syntax: CREATE TABLE ...
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.